﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace Team4Mock.UserControl.Team
{
    public partial class ViewAll : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            pnCreate.Visible = false;
            pnView.Visible = true;
            DataTable dt4 = new DataTable();

            dt4.Columns.Add("ID", typeof(int));
            dt4.Columns.Add("Team Name");
            dt4.Columns.Add("Head Office Address Line 1");
            dt4.Columns.Add("Post Code");
            dt4.Columns.Add("Contact");
            dt4.Columns.Add("Is Active");


            dt4.Rows.Add(1, "ZAdsadsadasdas", "3223232", "dasdasd", "Adasdas", "Yes");
            dt4.Rows.Add(2, "CBsadsadasdas", "3223232", "dasdasd", "Bdasdas", "Yes");
            dt4.Rows.Add(3, "FBdsadsadasdas", "3223232", "dasdasd", "Cdasdas", "Yes");
            dt4.Rows.Add(4, "GDdsadsadasdas", "3223232", "dasdasd", "Ddasdas", "Yes");
            dt4.Rows.Add(5, "AEdsadsadasdas", "3223232", "dasdasd", "Edasdas", "Yes");
            dt4.Rows.Add(6, "KFdsadsadasdas", "3223232", "dasdasd", "Fdasdas", "Yes");
            dt4.Rows.Add(7, "BGdsadsadasdas", "3223232", "dasdasd", "Gdasdas", "Yes");
            gvTeam.DataSource = dt4;
            gvTeam.DataBind();
        }
        protected void btnCreate_Click(object sender, EventArgs e)
        {
            pnView.Visible = false;
            pnCreate.Visible = true;
        }
        protected void btnSave_Click(object sender, EventArgs e)
        {

        }
        protected void btnBack_Click(object sender, EventArgs e)
        {

        }
    }
}